import java.util.Scanner;
public class a {
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    	String[] a = null;

    	a = sc.nextLine().split(" ");

  int[] n = new int[a.length];

  int index = a.length - 1;
  for(int i = 0; i < a.length ; i++){
  n[i] = a[index];
  index--;
  }

  for(int i : n){
  System.out.println(i);
  }
}
}
